300
|
How can I change the font for entire item
ComboBox1->Columns->Add(L"Default");
ComboBox1->Items->AddItem(TVariant("default font"));
/*
Select the Component\Import Component...\Import a Type Library,
to import the following Type Library:
OLE Automation
TypeLib: stdole2.tlb
to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
f->Name = L"Tahoma";
f->Size = TVariant(long(12));
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemFont(var_Items->AddItem(TVariant("new font")),(IFontDisp*)(f));
|
299
|
How do I vertically align a cell

ComboBox1->DrawGridLines = Excomboboxlib_tlb::GridLinesEnum::exRowLines;
ComboBox1->Columns->Add(L"MultipleLine")->set_Def(Excomboboxlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
ComboBox1->Columns->Add(L"VAlign");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("top"));
var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::VAlignmentEnum::exTop);
h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("middle"));
var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::VAlignmentEnum::exMiddle);
h = var_Items->AddItem(TVariant("This is a bit of long text that should break the line"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("bottom"));
var_Items->set_CellVAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::VAlignmentEnum::exBottom);
|
298
|
How can I change the position of an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->AddItem(TVariant("Item 1"));
var_Items->AddItem(TVariant("Item 2"));
var_Items->set_ItemPosition(var_Items->AddItem(TVariant("Item 3")),0);
|
297
|
How do I find an item based on a path

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->set_ItemData(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2")),TVariant(1234));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_FindPath(L"Root 1\\Child 1"),true);
|
296
|
How do I find an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_FindItem(TVariant("Child 2"),TVariant(0),TNoParam()),true);
|
295
|
How can I insert a hyperlink or an anchor element

ComboBox1->Columns->Add(L"Column");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaptionFormat(TVariant(var_Items->AddItem(TVariant("Just an <a1>anchor</a> element ..."))),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
Excomboboxlib_tlb::IItemsPtr var_Items1 = ComboBox1->Items;
var_Items1->set_CellCaptionFormat(TVariant(var_Items1->AddItem(TVariant("Just another <a2>anchor</a> element ..."))),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
|
294
|
How do I find the index of the item based on its handle

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_ItemByIndex(var_Items->get_ItemToIndex(h)),true);
|
293
|
How do I find the handle of the item based on its index

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_ItemByIndex(1),true);
|
292
|
How can I find the cell being clicked in a radio group

ComboBox1->MarkSearchColumn = false;
ComboBox1->SelBackColor = RGB(255,255,128);
ComboBox1->SelForeColor = RGB(0,0,0);
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
ComboBox1->Columns->Add(L"C3");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Radio 1"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant("Radio 2"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
var_Items->set_CellBold(TNoParam(),TVariant(var_Items->get_CellChecked(1234)),true);
|
291
|
Can I add a +/- ( expand / collapse ) buttons to each item, so I can load the child items later

ComboBox1->LinesAtRoot = Excomboboxlib_tlb::LinesAtRootEnum::exLinesAtRoot;
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemHasChildren(var_Items->AddItem(TVariant("parent item with no child items")),true);
var_Items->AddItem(TVariant("next item"));
|
290
|
Can I let the user to resize at runtime the specified item

ComboBox1->ScrollBySingleLine = true;
ComboBox1->DrawGridLines = Excomboboxlib_tlb::GridLinesEnum::exRowLines;
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemAllowSizing(var_Items->AddItem(TVariant("resizable item")),true);
var_Items->AddItem(TVariant("not resizable item"));
|
289
|
How can I change the size ( width, height ) of the picture

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellPicture(TVariant(h),TVariant(0),ComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
var_Items->set_CellPictureWidth(TVariant(h),TVariant(0),24);
var_Items->set_CellPictureHeight(TVariant(h),TVariant(0),24);
var_Items->set_ItemHeight(h,32);
h = var_Items->AddItem(TVariant("Root 2"));
var_Items->set_CellPicture(TVariant(h),TVariant(0),ComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
var_Items->set_ItemHeight(h,48);
|
288
|
How do I unselect an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(h,false);
|
287
|
How do I find the selected item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(h,true);
var_Items->set_ItemBold(var_Items->get_SelectedItem(0),true);
|
286
|
How do I select an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_SelectItem(h,true);
|
285
|
Can I display a button with some picture or icon inside

ComboBox1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(" Button <img>p1</img> "));
var_Items->set_CellCaptionFormat(TVariant(h),TVariant(1),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
var_Items->set_ItemHeight(h,48);
|
284
|
Can I display a button with some picture or icon inside

ComboBox1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(" Button <img>1</img> "));
var_Items->set_CellCaptionFormat(TVariant(h),TVariant(1),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
|
283
|
Can I display a button with some icon inside

ComboBox1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(" <img>1</img> "));
var_Items->set_CellCaptionFormat(TVariant(h),TVariant(1),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
|
282
|
How can I assign multiple icon/picture to a cell

ComboBox1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
ComboBox1->HTMLPicture[L"p2"] = TVariant("c:\\exontrol\\images\\auction.gif");
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("text <img>p1</img> another picture <img>p2</img> and so on"));
var_Items->set_CellCaptionFormat(TVariant(h),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
var_Items->set_CellPicture(TVariant(h),TVariant(0),ComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"));
var_Items->set_ItemHeight(h,48);
var_Items->AddItem(TVariant("Root 2"));
|
281
|
How can I assign an icon/picture to a cell

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellPicture(TVariant(h),TVariant(0),ComboBox1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
var_Items->set_ItemHeight(h,48);
var_Items->AddItem(TVariant("Root 2"));
|
280
|
How can I assign multiple icons/pictures to a cell

ComboBox1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root <img>1</img> 1, <img>2</img>, ... and so on "));
var_Items->set_CellCaptionFormat(TVariant(h),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
|
279
|
How can I assign multiple icons/pictures to a cell

ComboBox1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellImages(TVariant(h),TVariant(0),TVariant("1,2,3"));
|
278
|
How can I assign an icon/picture to a cell

ComboBox1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->set_CellImage(TVariant(h),TVariant(0),1);
var_Items->set_CellImage(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"))),TVariant(0),2);
var_Items->set_CellImage(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"))),TVariant(0),3);
var_Items->set_ExpandItem(h,true);
|
277
|
How can I get the handle of an item based on the handle of the cell

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_CellItem(var_Items->get_ItemCell(h,TVariant(0))),true);
|
276
|
How can I display a button inside the item or cell

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(" Button 1 "));
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::AlignmentEnum::RightAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
h = var_Items->AddItem(TVariant("Cell 2"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant(" Button 2 "));
var_Items->set_CellHAlignment(TVariant(h),TVariant(1),Excomboboxlib_tlb::AlignmentEnum::CenterAlignment);
var_Items->set_CellHasButton(TVariant(h),TVariant(1),true);
|
275
|
How can I change the state of a radio button

ComboBox1->MarkSearchColumn = false;
ComboBox1->SelBackColor = RGB(255,255,128);
ComboBox1->SelForeColor = RGB(0,0,0);
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
ComboBox1->Columns->Add(L"C3");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Radio 1"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant("Radio 2"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
|
274
|
How can I assign a radio button to a cell

ComboBox1->MarkSearchColumn = false;
ComboBox1->SelBackColor = RGB(255,255,128);
ComboBox1->SelForeColor = RGB(0,0,0);
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
ComboBox1->Columns->Add(L"C3");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Radio 1"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(1),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(1),1234);
var_Items->set_CellCaption(TVariant(h),TVariant(2),TVariant("Radio 2"));
var_Items->set_CellHasRadioButton(TVariant(h),TVariant(2),true);
var_Items->set_CellRadioGroup(TVariant(h),TVariant(2),1234);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
|
273
|
How can I change the state of a checkbox

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Check Box"));
var_Items->set_CellHasCheckBox(TVariant(h),TVariant(1),true);
var_Items->set_CellState(TVariant(h),TVariant(1),1);
|
272
|
How can I assign a checkbox to a cell

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Check Box"));
var_Items->set_CellHasCheckBox(TVariant(h),TVariant(1),true);
|
271
|
How can I display an item or a cell on multiple lines

ComboBox1->ScrollBySingleLine = true;
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("This is bit of text that's shown on multiple lines"));
var_Items->set_CellSingleLine(TVariant(h),TVariant(1),Excomboboxlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
|
270
|
How can I assign a tooltip to a cell

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("tooltip"));
var_Items->set_CellToolTip(TVariant(h),TVariant(1),L"This is bit of text that's shown when the user hovers the cell");
|
269
|
How can I associate an extra data to a cell

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellData(TVariant(h),TVariant(1),TVariant("your extra data"));
|
268
|
How do I enable or disable a cell

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellEnabled(TVariant(h),TVariant(1),false);
|
267
|
How do I change the cell's foreground color

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellForeColor(TVariant(h),TVariant(1),RGB(255,0,0));
|
266
|
How do I change the visual effect for the cell, using your EBN files

ComboBox1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellBackColor(TVariant(h),TVariant(1),0x1000000);
|
265
|
How do I change the cell's background color

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellBackColor(TVariant(h),TVariant(1),RGB(255,0,0));
|
264
|
How do I change the caption or value for a particular cell

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Cell 1"))),TVariant(1),TVariant("Cell 2"));
|
263
|
How do I get the handle of the cell

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_CellBold(TNoParam(),TVariant(var_Items->get_ItemCell(h,TVariant(0))),true);
|
262
|
How do I retrieve the focused item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->FocusItem,true);
|
261
|
How do I get the number or count of child items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->AddItem(TVariant(var_Items->get_ChildCount(h)));
|
260
|
How do I enumerate the visible items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
h = var_Items->AddItem(TVariant("Root 2"));
var_Items->set_ItemBold(var_Items->FirstVisibleItem,true);
var_Items->set_ItemBold(var_Items->get_NextVisibleItem(var_Items->FirstVisibleItem),true);
|
259
|
How do I enumerate the siblings items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
h = var_Items->AddItem(TVariant("Root 2"));
var_Items->set_ItemBold(var_Items->get_NextSiblingItem(var_Items->FirstVisibleItem),true);
var_Items->set_ItemBold(var_Items->get_PrevSiblingItem(var_Items->get_NextSiblingItem(var_Items->FirstVisibleItem)),true);
|
258
|
How do I get the parent item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_ItemParent(var_Items->get_ItemChild(h)),true);
|
257
|
How do I get the first child item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->set_ItemBold(var_Items->get_ItemChild(h),true);
|
256
|
How do I enumerate the root items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
h = var_Items->AddItem(TVariant("Root 2"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ItemBold(var_Items->get_RootItem(0),true);
var_Items->set_ItemUnderline(var_Items->get_RootItem(1),true);
|
255
|
I have a hierarchy, how can I count the number of root items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
h = var_Items->AddItem(TVariant("Root 2"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->AddItem(TVariant(var_Items->RootCount));
|
254
|
How can I make an item unselectable, or not selectable

ComboBox1->Columns->Add(L"Column");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("unselectable - you can't get selected"));
var_Items->set_SelectableItem(h,false);
var_Items->AddItem(TVariant("selectable"));
|
253
|
How can I hide or show an item

ComboBox1->Columns->Add(L"Column");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("hidden"));
var_Items->set_ItemHeight(h,0);
var_Items->set_SelectableItem(h,false);
var_Items->AddItem(TVariant("visible"));
|
252
|
How can I change the height for all items

ComboBox1->DefaultItemHeight = 32;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant("One"));
ComboBox1->Items->AddItem(TVariant("Two"));
|
251
|
How do I change the height of an item

ComboBox1->ScrollBySingleLine = true;
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemHeight(var_Items->AddItem(TVariant("height")),128);
ComboBox1->Items->AddItem(TVariant("enabled"));
|
250
|
How do I disable or enable an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_EnableItem(var_Items->AddItem(TVariant("disabled")),false);
ComboBox1->Items->AddItem(TVariant("enabled"));
|
249
|
How do I display as strikeout a cell

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellStrikeOut(TVariant(var_Items->AddItem(TVariant("strikeout"))),TVariant(0),true);
|
248
|
How do I display as strikeout a cell or an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaptionFormat(TVariant(var_Items->AddItem(TVariant("gets <s>strikeout</s> only a portion of text"))),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
|
247
|
How do I display as strikeout an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemStrikeOut(var_Items->AddItem(TVariant("strikeout")),true);
|
246
|
How do I underline a cell

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellUnderline(TVariant(var_Items->AddItem(TVariant("underline"))),TVariant(0),true);
|
245
|
How do I underline a cell or an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaptionFormat(TVariant(var_Items->AddItem(TVariant("gets <u>underline</u> only a portion of text"))),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
|
244
|
How do I underline an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemUnderline(var_Items->AddItem(TVariant("underline")),true);
|
243
|
How do I display as italic a cell

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellItalic(TVariant(var_Items->AddItem(TVariant("italic"))),TVariant(0),true);
|
242
|
How do I display as italic a cell or an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaptionFormat(TVariant(var_Items->AddItem(TVariant("gets <i>italic</i> only a portion of text"))),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
|
241
|
How do I display as italic an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemItalic(var_Items->AddItem(TVariant("italic")),true);
|
240
|
How do I bold a cell

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellBold(TVariant(var_Items->AddItem(TVariant("bold"))),TVariant(0),true);
|
239
|
How do I bold a cell or an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaptionFormat(TVariant(var_Items->AddItem(TVariant("gets <b>bold</b> only a portion of text"))),TVariant(0),Excomboboxlib_tlb::CaptionFormatEnum::exHTML);
|
238
|
How do I bold an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemBold(var_Items->AddItem(TVariant("bold")),true);
|
237
|
How do I change the foreground color for the item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root"));
long hC = var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->set_ItemForeColor(hC,RGB(255,0,0));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
|
236
|
How do I change the visual appearance for the item, using your EBN technology

ComboBox1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root"));
long hC = var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->set_ItemBackColor(hC,0x1000000);
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
|
235
|
How do I change the background color for the item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root"));
long hC = var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->set_ItemBackColor(hC,RGB(255,0,0));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
|
234
|
How do I expand or collapse an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
|
233
|
How do I associate an extra data to an item

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_ItemData(var_Items->AddItem(TVariant("item")),TVariant("your extra data"));
|
232
|
How do I get the number or count of items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
Excomboboxlib_tlb::IItemsPtr var_Items1 = ComboBox1->Items;
var_Items1->AddItem(TVariant(var_Items1->ItemCount));
|
231
|
How can I change at runtime the parent of the item

ComboBox1->LinesAtRoot = Excomboboxlib_tlb::LinesAtRootEnum::exLinesAtRoot;
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long hP = var_Items->AddItem(TVariant("Root"));
long hC = var_Items->AddItem(TVariant("Child"));
var_Items->SetParent(hC,hP);
|
230
|
How can I sort the items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
ComboBox1->Columns->get_Item(TVariant("Default"))->SortOrder = Excomboboxlib_tlb::SortOrderEnum::SortDescending;
|
229
|
How do I sort the child items

ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Root"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 1"));
var_Items->InsertItem(h,TNoParam(),TVariant("Child 2"));
var_Items->set_ExpandItem(h,true);
var_Items->SortChildren(h,TVariant(0),false);
|
228
|
How can I remove or delete all items

ComboBox1->Columns->Add(L"Default");
ComboBox1->Items->AddItem(TVariant("removed item"));
ComboBox1->Items->RemoveAllItems();
|
227
|
How can I remove or delete an item

ComboBox1->Columns->Add(L"Default");
long h = ComboBox1->Items->AddItem(TVariant("removed item"));
ComboBox1->Items->RemoveItem(h);
|
226
|
How can I add or insert child items

ComboBox1->LinesAtRoot = Excomboboxlib_tlb::LinesAtRootEnum::exLinesAtRoot;
ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
long h = var_Items->AddItem(TVariant("Cell 1"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Cell 2"));
var_Items->set_CellCaption(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Cell 3"))),TVariant(1),TVariant("Cell 4"));
var_Items->set_CellCaption(TVariant(var_Items->InsertItem(h,TNoParam(),TVariant("Cell 5"))),TVariant(1),TVariant("Cell 6"));
var_Items->set_ExpandItem(h,true);
|
225
|
How can I add or insert a child item

ComboBox1->LinesAtRoot = Excomboboxlib_tlb::LinesAtRootEnum::exLinesAtRoot;
ComboBox1->Columns->Add(L"Default");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->InsertItem(var_Items->AddItem(TVariant("root")),TNoParam(),TVariant("child"));
|
224
|
How can I add or insert an item

ComboBox1->Columns->Add(L"C1");
ComboBox1->Columns->Add(L"C2");
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant("Cell 1"))),TVariant(1),TVariant("Cell 2"));
long h = var_Items->AddItem(TVariant("Cell 3"));
var_Items->set_CellCaption(TVariant(h),TVariant(1),TVariant("Cell 4"));
|
223
|
How can I add or insert an item

ComboBox1->Columns->Add(L"Default");
ComboBox1->Items->AddItem(TVariant("new item"));
|
222
|
How can I get the columns as they are shown in the control's sortbar
_tlb::ObjectPtr var_Object = ComboBox1->Columns->get_ItemBySortPosition(TVariant(0));
|
221
|
How can I access the properties of a column

ComboBox1->Columns->Add(L"A");
ComboBox1->Columns->get_Item(TVariant("A"))->HeaderBold = true;
|
220
|
How can I remove all the columns

ComboBox1->Columns->Clear();
|
219
|
How can I remove a column

ComboBox1->Columns->Remove(TVariant("A"));
|
218
|
How can I get the number or the count of columns
long var_Count = ComboBox1->Columns->Count;
|
217
|
How can I change the font for all cells in the entire column

/*
Select the Component\Import Component...\Import a Type Library,
to import the following Type Library:
OLE Automation
TypeLib: stdole2.tlb
to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
f->Name = L"Tahoma";
f->Size = TVariant(long(12));
Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"1",TNoParam());
var_ConditionalFormat->Font = (IFontDisp*)(f);
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum::exFormatToColumns;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant(0));
ComboBox1->Items->AddItem(TVariant(1));
|
216
|
How can I change the background color for all cells in the column

Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"1",TNoParam());
var_ConditionalFormat->BackColor = RGB(255,0,0);
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum::exFormatToColumns;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant(0));
ComboBox1->Items->AddItem(TVariant(1));
|
215
|
How can I change the foreground color for all cells in the column

Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"1",TNoParam());
var_ConditionalFormat->ForeColor = RGB(255,0,0);
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum::exFormatToColumns;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant(0));
ComboBox1->Items->AddItem(TVariant(1));
|
214
|
How can I show as strikeout all cells in the column

Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"1",TNoParam());
var_ConditionalFormat->StrikeOut = true;
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum::exFormatToColumns;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant(0));
ComboBox1->Items->AddItem(TVariant(1));
|
213
|
How can I underline all cells in the column

Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"1",TNoParam());
var_ConditionalFormat->Underline = true;
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum::exFormatToColumns;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant(0));
ComboBox1->Items->AddItem(TVariant(1));
|
212
|
How can I show in italic all data in the column

Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"1",TNoParam());
var_ConditionalFormat->Italic = true;
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum::exFormatToColumns;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant(0));
ComboBox1->Items->AddItem(TVariant(1));
|
211
|
How can I bold the entire column

Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"1",TNoParam());
var_ConditionalFormat->Bold = true;
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum::exFormatToColumns;
ComboBox1->Columns->Add(L"Column");
ComboBox1->Items->AddItem(TVariant(0));
ComboBox1->Items->AddItem(TVariant(1));
|
210
|
How can I display a computed column and highlight some values that are negative or less than a value

ComboBox1->Columns->Add(L"A");
ComboBox1->Columns->Add(L"B");
ComboBox1->Columns->Add(L"(A+B)*1.19")->ComputedField = L"(%0 + %1) * 1.19";
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Excomboboxlib_tlb::IItemsPtr var_Items1 = ComboBox1->Items;
var_Items1->set_CellCaption(TVariant(var_Items1->AddItem(TVariant(10))),TVariant(1),TVariant(20));
Excomboboxlib_tlb::IConditionalFormatPtr var_ConditionalFormat = ComboBox1->ConditionalFormats->Add(L"%2 > 10",TNoParam());
var_ConditionalFormat->Bold = true;
var_ConditionalFormat->ForeColor = RGB(255,0,0);
var_ConditionalFormat->ApplyTo = Excomboboxlib_tlb::FormatApplyToEnum(0x2);
|
209
|
Can I display a computed column so it displays the VAT, or SUM

ComboBox1->Columns->Add(L"A");
ComboBox1->Columns->Add(L"B");
ComboBox1->Columns->Add(L"(A+B)*1.19")->ComputedField = L"(%0 + %1) * 1.19";
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Excomboboxlib_tlb::IItemsPtr var_Items1 = ComboBox1->Items;
var_Items1->set_CellCaption(TVariant(var_Items1->AddItem(TVariant(10))),TVariant(1),TVariant(20));
|
208
|
How can I show a column that adds values in the cells

ComboBox1->Columns->Add(L"A");
ComboBox1->Columns->Add(L"B");
ComboBox1->Columns->Add(L"A+B")->ComputedField = L"%0 + %1";
Excomboboxlib_tlb::IItemsPtr var_Items = ComboBox1->Items;
var_Items->set_CellCaption(TVariant(var_Items->AddItem(TVariant(1))),TVariant(1),TVariant(2));
Excomboboxlib_tlb::IItemsPtr var_Items1 = ComboBox1->Items;
var_Items1->set_CellCaption(TVariant(var_Items1->AddItem(TVariant(10))),TVariant(1),TVariant(20));
|
207
|
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters

Excomboboxlib_tlb::IColumnPtr var_Column = ComboBox1->Columns->Add(L"Filter");
var_Column->FilterOnType = true;
var_Column->DisplayFilterButton = true;
var_Column->AutoSearch = Excomboboxlib_tlb::AutoSearchEnum::exContains;
ComboBox1->Items->AddItem(TVariant("Canada"));
ComboBox1->Items->AddItem(TVariant("USA"));
|
206
|
Is there any function to filter the control's data as I type, something like filter on type

Excomboboxlib_tlb::IColumnPtr var_Column = ComboBox1->Columns->Add(L"Filter");
var_Column->FilterOnType = true;
var_Column->DisplayFilterButton = true;
ComboBox1->Items->AddItem(TVariant("Canada"));
ComboBox1->Items->AddItem(TVariant("USA"));
|
205
|
How can I programmatically filter a column

Excomboboxlib_tlb::IColumnPtr var_Column = ComboBox1->Columns->Add(L"Filter");
var_Column->DisplayFilterButton = true;
var_Column->FilterType = Excomboboxlib_tlb::FilterTypeEnum::exNonBlanks;
ComboBox1->Items->AddItem(TNoParam());
ComboBox1->Items->AddItem(TVariant("not empty"));
ComboBox1->ApplyFilter();
|
204
|
How can I show or display the control's filter

ComboBox1->Columns->Add(L"Filter")->DisplayFilterButton = true;
|
203
|
How can I customize the items being displayed in the drop down filter window

Excomboboxlib_tlb::IColumnPtr var_Column = ComboBox1->Columns->Add(L"Custom Filter");
var_Column->DisplayFilterButton = true;
var_Column->DisplayFilterPattern = false;
var_Column->CustomFilter = TVariant(String("Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.") +
"txt|*.log");
var_Column->FilterType = Excomboboxlib_tlb::FilterTypeEnum::exPattern;
var_Column->Filter = L"*.xls";
ComboBox1->Items->AddItem(TVariant("excel.xls"));
ComboBox1->Items->AddItem(TVariant("word.doc"));
ComboBox1->Items->AddItem(TVariant("pp.pps"));
ComboBox1->Items->AddItem(TVariant("text.txt"));
ComboBox1->ApplyFilter();
|
202
|
How can I change the order or the position of the columns in the sort bar

ComboBox1->SortBarVisible = true;
ComboBox1->SortBarColumnWidth = 48;
ComboBox1->Columns->Add(L"C1")->SortOrder = Excomboboxlib_tlb::SortOrderEnum::SortAscending;
ComboBox1->Columns->Add(L"C2")->SortOrder = Excomboboxlib_tlb::SortOrderEnum::SortDescending;
ComboBox1->Columns->get_Item(TVariant("C2"))->SortPosition = 0;
|
201
|
How do I arrange my columns on multiple levels

ComboBox1->Columns->Add(L"S")->Width = 32;
ComboBox1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1));
ComboBox1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1));
ComboBox1->Columns->Add(L"Level 4")->set_LevelKey(TVariant(1));
ComboBox1->Columns->Add(L"Level 1")->set_LevelKey(TVariant("2"));
ComboBox1->Columns->Add(L"Level 2")->set_LevelKey(TVariant("2"));
ComboBox1->Columns->Add(L"Level 3")->set_LevelKey(TVariant("2"));
ComboBox1->Columns->Add(L"Level 4")->set_LevelKey(TVariant("2"));
ComboBox1->Columns->Add(L"E")->Width = 32;
|